﻿#include "stock.h"
#include "appsence.h"
Stock::Stock(QString id, AppSence *appSence)
{
    m_ID = id;
    m_appSence = appSence;
    if(appSence){
        appSence->addStock(this);
    }
    m_pos = QPoint(0, 0);
}

QString Stock::id()
{
    return m_ID;
}

int Stock::move(QPoint posDest)
{
    m_pos = posDest;
    return 0;
}

QPoint Stock::pos()
{
    return m_pos;
}
